![]() |
PATH![]() |
After the functions used to open the interface have completed, you need to work out which already open pipe in the interface is the one you want to communicate through.
The USBFindNextPipe function can be used to either find a specific pipe, as specified by the direction in the usbFlags field and type in the usbClassType field, or to search through the available pipes.
OSStatus USBFindNextPipe(USBPB *pb);
Required fields required the USBPB parameter block for the USBFindNextPipe function are
This function takes either an interface or pipe reference in the usbReference field. To find the first pipe, make a call to the function with an interface reference. To find the next pipe, enter the pipe reference returned by the previous call.
The usbFlags field takes either a specified endpoint direction or a wildcard of kUSBAnyDirn . The usbClassType field takes either a specified endpoint type or a wildcard of kUSBAnyType . For example, if you specify values for an input interrupt pipe, the function returns only the input interrupt pipes found. If a wildcard is used, all pipes of any type and direction found are returned.
Errors returned by the USBFindNextPipe function include
Previous | Back Up One Level | Next |